import 'package:flutter/material.dart';
import 'package:photo_view/photo_view.dart';
import '../../helper/Helper.dart';

class ImgScanCard extends StatelessWidget {
  final String img;
  ImgScanCard(this.img);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text('图片预览')),
      // The image is stored as a file on the device. Use the `Image.file`
      // constructor with the given path to display the image.
      body: PhotoView(
                      imageProvider:  Helper.Base64ToImage2( img),
                      //  backgroundColor: GlobalConfig.cardBackgroundColor,
                    )
                
    );
  }
}



